<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'main.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">

</head>

<body>
<TABLE class=small cellSpacing=0 cellPadding=3 width="100%" height="50"
	border=0>
	<TR>
		<TD class=Big><IMG src="<%=basePath%>/img/office/address.gif"
			align=absMiddle> <SPAN class=big3>&nbsp; 滚动图片管理 </SPAN></TD>
	</TR>
	<tr>
		<td style="padding-left: 140px;"><font color="red">&nbsp;
		温馨提示：最多只能发布８张图片到前台</font></td>
	</tr>
</TABLE>
<c:forEach items="${ piclist }" var="list">
	<table class="TableBlock" width="750" align="center">
		<tr align="center">
			<td class="TableBlock">${list.picTitle }</td>
		</tr>
		<tr align="center">
			<td class="TableBlock"><img
				src="<%=basePath%>img/index/gundongtiao/${list.picName }"
				width="200" height="100" /></td>
		</tr>
		<tr align="center">
			<td class="TableBlock">
			<div class="opt"><a
				href="<%=basePath%>RollPicServlet?action=edit&picID=${list.picID }">编辑</a>|
			<a href="<%=basePath%>RollPicServlet?action=del&picID=${list.picID }">删除</a>|
			<c:choose>
				<c:when test="${list.sign eq 'n' }">
					<a
						href="<%=basePath%>RollPicServlet?action=publish&picID=${list.picID }">设置为公开</a>
				</c:when>
				<c:otherwise>
					<a
						href="<%=basePath%>RollPicServlet?action=dispublish&picID=${list.picID }">设置为不公开</a>
				</c:otherwise>
			</c:choose></div>
			</td>
		</tr>
	</table>
</c:forEach>
</body>
</html>
